<template>
    <div class="py-4 container-fluid">
      <div class=" row">
        <div class="col-12">
          <authors-table />
        </div>
      </div>
    </div>
  </template>
  
  <script>
    import AuthorsTable from "./components/AuthorsTable.vue";
    import router from "@/router/index.js"
  export default {
    name: "tables",
    components: {
      AuthorsTable,
    },
    data() {
      return {
        stats: {
          titleColor: "opacity-7 text-white",
          descColor: "text-white",
          trip: {
            title: "Today's Trip",
            desc: "145 KM",
            classIcon: "text-dark ni ni-money-coins",
          },
          health: {
            title: "Battery Health",
            desc: "99 %",
            classIcon: "text-dark ni ni-controller ",
          },
          speed: {
            title: "Average Speed",
            desc: "56 Km/h",
            classIcon: "text-dark ni ni-delivery-fast",
          },
          volume: {
            title: "Music Volume",
            desc: "15/100",
            classIcon: "text-dark ni ni-note-03",
          },
        },
      };
    },
    created(){
    const flag = sessionStorage.getItem("LOGINFLAG")
    if(flag == null){
      router.push('/signin')
    }
    if(flag != 0){
      router.push('/facility')
    }
  },
    methods:{
      add(){
        router.push({
          path:"/facility"
        })
      }
    }
  };
  </script>
  